import { AuthRoute } from "~/src/typings/router";


/**
 * 静态路由
 * @param staticRoutes 静态路由
 */
export const staticRoutes: AuthRoute.Route[] = [
  {
    name: 'dashboard',
    path: '/dashboard',
    component: 'basic',
    redirect:'/dashboard/analysis',
    meta: {
      title: '仪表盘',
      icon: 'mdi:monitor-dashboard'
    },
    children: [
      {
        name: 'dashboard_analysis',
        path: '/dashboard/analysis',
        component: 'self',
        meta: {
          title: '分析页',
          icon: 'icon-park-outline:analysis'
        }
      }
    ]
  },
  {
    name: 'business',
    path: '/business',
    redirect: '/business/films',
    component: 'basic',
    children: [
      {
        name: 'business_films',
        path: '/business/films',
        component: 'self',
        meta: {
          title: '电影管理(单表查询)',
          icon: 'mdi:filmstrip-box',
          btnAuth: ['create', 'update', 'delete', 'search']
        }
      },
      {
        name: 'business_student',
        path: '/business/student',
        component: 'self',
        meta: {
          title: '学生管理(多表连查)',
          icon: 'ph:student',
          btnAuth: []
        }
      }
    ],
    meta: {
      title: '业务(java练习)',
      icon: 'carbon:ibm-cloud-pak-business-automation'
    }
  },
  {
    name: 'collect',
    path: '/collect',
    component: 'basic',
    redirect: '/collect/style',
    meta: {
      title: '收藏',
      icon: 'ph:star-duotone'
    },
    children: [
      {
        name: 'collect_style',
        path: '/collect/style',
        component: 'self',
        meta: {
          title: '样式',
          icon: 'radix-icons:font-style'
        }
      },
      {
        name: 'collect_js',
        path: '/collect/js',
        component: 'self',
        meta: {
          title: '脚本',
          icon: 'radix-icons:font-style'
        }
      }
    ]
  },
  {
    name: 'management',
    path: '/management',
    component: 'basic',
    meta: {
      title: '系统管理',
      icon: 'carbon:cloud-service-management'
    },
    children: [
      {
        name: 'management_user',
        path: '/management/user',
        component: 'self',
        meta: {
          title: '用户管理',
          icon: 'ic:round-person',
          btnAuth: []
        }
      },
      {
        name: 'management_role',
        path: '/management/role',
        component: 'self',
        meta: {
          title: '角色管理',
          icon: 'ic:baseline-security',
          btnAuth: []
        }
      }
    ]
  }
];
